

from django.urls import path
from flow.views import *

urlpatterns = [

    # 七牛云
    path("qiniuyun/", Qiniu.as_view({"get": "qiniuyun"})),

    # 添加 审批类型
    path("vettings/", ApprovalView.as_view({"post": "vetting_add", "get": "vetting_list"})),

    # 获取 删除 修改审批类型
    path("revivetting/<int:pk>/", ApprovalView.as_view({"put": "vetting_update", "get": "veetting_info", "delete": "veetting_delete"})),

    # 获取审批流程
    path("approvals/", FlowView.as_view({"get": "flow_list", "post": "flow_add"})),

    # 删除 修改 获取 流程
    path("reviseroval/<int:pk>/", FlowView.as_view({"get": "flow_info", "put": "flow_update", "delete": "flow_delete"})),


    # 请假模板
    path("leave/", LeaveViews.as_view()),

    # 借款模板
    path("loan/", LoanViews.as_view()),

    # 出差模板
    path("travel/", TravelViews.as_view()),

    # 转正模板
    path("positive/", PositiveViews.as_view()),

    # 用车模板
    path("bycar/", BycarViews.as_view()),

    # 报销模板
    path("reimbursement/", ReimbursementViews.as_view()),

    # 新增材料-获取全部材料
    path("newmaterial/", StuffVise.as_view({"post": "stuff_add", "get": "stuff_list"})),

    # 获取单个 修改 删除材料
    path("newmaterial/<int:pk>/", StuffVise.as_view({"get": "stuff_info", "put": "stuff_update", "delete": "stuff_delete"})),

    # 搜索
    path("search/", StuffVise.as_view({"get": "search"})),

]
